package com.test;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class test5 {

    public static void main(String[] args) {
        Runnable r=new Runnable() {
            @Override
            public void run() {
                System.out.println("来了");
            }
        };

        ExecutorService theadPool= Executors.newFixedThreadPool(100);
        for (int i=1;i<10;i++){
            Thread t=new Thread(r);
            theadPool.execute(t);  //同时执行
        }
        System.out.println("最后执行");
    }

}
